package my.edu.model.bills.purchase.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("purchase_sales_expenses")
public class PurchaseSalesExpenses {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long sourceDocumentId;//源单据ID
    private Long supplierId;//供应商ID
    private Long customerId;//客户ID
    private String billsType;
    private String supplierName;
    private String customerName;
    private String expenditureType;//支出类型
    private BigDecimal amount;
    private BigDecimal unpaidExpense;//未付款费用
    private Long sourceContactId;//源来往单位ID
    private String sourceContactName;
    private Long otherExpenseDocumentId;//其他支出单ID
    private String otherExpenseDocumentNo;
    private String paymentStatus;//付款状态
    private String remark;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private Long updatedBy;
}